<?php
	class TutorSchoolModel extends Model {
		function TutorSchoolModel()
		{
			parent::Model();			
		}
		
		function add($data)
		{
			$this->db->insert('tutor_school', $data);
			return $this->db->insert_id();
		}
		
		function delete($stuID)
		{
            $this->db->where('tutor_id', $stuID);
			$this->db->delete('tutor_school'); 
		}
		
		function getByID($stuID)
		{
			$query = $this->db->get_where('tutor_school', array('tutor_id' => $stuID));
			return $query->result();
		}
	}
?>